/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.library.entity;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

/**
 * 图书馆信息Entity
 * @author zhangc
 * @version 2018-01-07
 */
public class Library extends DataEntity<Library>{
	
	private static final long serialVersionUID = 1L;
	private String name;		// 图书馆名称
	private String qrCode;		// 二维码
	private String token;		// 微信token
	private String appId;		// 微信appid
	private String appSecret;		// 微信appsecret
	private String tel;		// 电话
	private String address;		// 地址
	
	public Library() {
		super();
	}

	public Library(String id){
		super(id);
	}

	@Length(min=0, max=20, message="图书馆名称长度必须介于 0 和 20 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=200, message="二维码长度必须介于 1 和 200 之间")
	public String getQrCode() {
		return qrCode;
	}

	public void setQrCode(String qrCode) {
		this.qrCode = qrCode;
	}
	
	@Length(min=1, max=50, message="微信token长度必须介于 1 和 50 之间")
	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}
	
	@Length(min=1, max=50, message="微信appid长度必须介于 1 和 50 之间")
	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}
	
	@Length(min=1, max=100, message="微信appsecret长度必须介于 1 和 100 之间")
	public String getAppSecret() {
		return appSecret;
	}

	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}
	
	@Length(min=1, max=20, message="电话长度必须介于 1 和 20 之间")
	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}
	
	@Length(min=1, max=200, message="地址长度必须介于 1 和 200 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
}